package cn.kgc.crowdfundingadminspringboot2.controller;

import cn.kgc.crowdfundingadminspringboot2.common.CrowdFundingUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/login")
    String login(@RequestParam("account") String account,@RequestParam("password") String password){
    String MD5Password1 = CrowdFundingUtils.md5("123456");
    String Md5password2 = CrowdFundingUtils.md5(password);
    if(MD5Password1.equals(Md5password2)){
        return "aaa.index";
    }
        return "null      ";
    }
}

